<template>
<div>
    <div >
            <Table>
            <tr>
                <th>商品名称</th>
                <th>商品价格</th>
                <th>商品数量</th>
                <th>总价格</th>
                <th>实际支付金额</th>
                
            </tr >
            <tr v-for="(item,index) in cartlist" :key="index">
                <td>{{item.title}}</td>
                <td>{{item.price}}</td>
                <td>{{item.num}}</td>
                <td>{{item.rprice}}</td>
                <td>{{item.youhun}}</td>
            </tr>
               
            </Table>
        </div>
</div>

    
</template>

<script>
export default {
    data () {
        return {
            cartlist:[]
            
        }
    },
    methods: {
        showcart(){
              this.axios.get('http://127.0.0.1:8000/myupup/myupdecartlist/')
             .then(result=>{
                 this.cartlist=result.data.message
                 console.log(result)
            
             })      
        }
        
    },
    mounted() {
        this.showcart()
    },

}
</script>

<style>

</style>
